using System;
using System.Collections.Generic;
using UniversalAdmin.Domain.Entities;

namespace UniversalAdmin.Domain.Entities.App;

public class Role : EntityBase
{
    public string Name { get; set; } = string.Empty;// 防止 null 异常,提供明确的默认值
    public string? Description { get; set; }

    // Navigation properties
    public virtual ICollection<User> Users { get; set; } = new List<User>();
    public virtual ICollection<Menu> Menus { get; set; } = new List<Menu>();
}
